{#
Copyright (c) 2020 Andy Zhou
MIT License
#}
{% from 'macros.html' import action_card %}
<div class="col-md-4">
    {% if current_user.is_authenticated %}
        <div class="card mb-3 d-flex flex-wrap justify-content-between">
            <div class="card-header">{{ _("Quick Actions") }}</div>
            <div class="d-flex flex-fill">
                {{ action_card("bi-images", _("Images"), url_for("image.manage")) }}
                {{ action_card("bi-collection", _("Collections"), url_for("main.collected_posts")) }}
            </div>
        </div>
        <div class="card mb-3 d-flex flex-wrap justify-content-between">
            <div class="card-header">{{ _("Post") }}</div>
            <div class="d-flex flex-fill">
                {{ action_card("bi-vector-pen", _("Write"), url_for("main.write")) }}
                {{ action_card("bi-files", _("Yours"), url_for("main.manage_posts") )}}
            </div>
        </div>
        <div class="card mb-3 d-flex flex-wrap justify-content-between">
            <div class="card-header">{{ _("Group") }}</div>
            <div class="d-flex flex-fill">
                {{ action_card("bi-plus", _("Create"), url_for("group.create")) }}
                {{ action_card("bi-person-plus", _("Join"), url_for("group.explore")) }}
                {{ action_card("bi-diagram-3-fill", _("Yours"), url_for("user.groups")) }}
            </div>
        </div>
        <div class="card mb-3 d-flex flex-wrap justify-content-between">
            <div class="card-header">{{ _("Explore") }}</div>
            <div class="d-flex flex-fill">
                {{ action_card("bi-people", _("Users"), url_for("user.all")) }}
                {{ action_card("bi-diagram-3", _("Groups"), url_for("group.all")) }}
                {{ action_card("bi-stars", _("Picks"), url_for("main.picks")) }}
            </div>
        </div>
        <div class="card mb-3">
            <div class="card-header">{{ _("Profile") }}</div>
            <div class="d-flex flex-fill">
                {{ action_card("bi-person-badge", _("View"), current_user.profile_url()) }}
                {{ action_card("bi-pencil", _("Edit"), url_for("user.edit_profile")) }}
            </div>
        </div>
        <div class="card mb-3">
            <div class="card-header">{{ _("Column") }}</div>
            <div class="d-flex flex-fill">
                {{ action_card("bi-plus", _("Create"), url_for("main.create_column")) }}
                {{ action_card("bi-journals", _("All"), url_for("main.all_columns")) }}
            </div>
        </div>
    {% endif %}
</div>
